package com.zhouchao.dubbo.controller;

import com.zhouchao.dubbo.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhouchao
 * @Date: 2021/09/18 19:56
 * @Description:
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping
    public String hello(){
        return helloService.methodA();
    }
}
